{include file="index/header" /}
<body>
<div class="panel admin-panel margin-top" id="add">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 增加内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:url('privilege/add')}">    
      <div class="form-group">
        <div class="label">
          <label>权限名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="privilege_name" placeholder="请输入权限名称" data-validate="required:请输入权限名称" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
          <div class="label">
            <label>父级权限：</label>
          </div>
          <div class="field">
            <select name="parent_id" class="input w50">
              <option value="0">顶级权限</option>
              {foreach name='data' item='v'}
              <option value="{$v.privilege_id}"><?php echo str_repeat("&nbsp;&nbsp;",$v['level']*2).$v['privilege_name'];   ?></option>
              {/foreach}
            </select>  
            <div class="tips"></div>
          </div>
        </div>
        <div class="form-group">
        <div class="label">
          <label>控制器名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="controller_name" placeholder="请输入控制器名称" data-validate="required:请输入控制器名称" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
      <div class="label">
          <label>方法名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="action_name" placeholder="请输入方法名称" data-validate="required:请输入方法名称" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>显示：</label>
        </div>
        <div class="field">
          <div class="button-group radio">
          
          <label class="button active">
            <span class="icon icon-check"></span>             
              <input name="privilege_status" value="1" type="radio" checked="checked">是             
          </label>             
        
          <label class="button"><span class="icon icon-times"></span>            
              <input name="privilege_status" value="0"  type="radio">否
          </label>         
           </div>       
        </div>
     </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body></html>